home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / python2.5.prerm < prev    next >
Text File  |  2008-10-05  |  548b  |  28 lines

  1. #! /bin/sh -e
  2. #
  3. # prerm script for the Debian python2.5-base package.
  4. # Written 1998 by Gregor Hoffleit <flight@debian.org>.
  5. #
  6.  
  7. case "$1" in
  8.     remove|upgrade)
  9.     dpkg -L python2.5 \
  10.         | awk '/\.py$/ {print $0"c\n" $0"o"}' \
  11.         | xargs rm -f >&2
  12.         ;;
  13.     deconfigure)
  14.         ;;
  15.     failed-upgrade)
  16.         ;;
  17.     *)
  18.         echo "prerm called with unknown argument \`$1'" >&2
  19.         exit 1
  20.     ;;
  21. esac
  22.  
  23. rmdir /usr/local/lib/python2.5/site-packages 2>/dev/null && \
  24.         rmdir /usr/local/lib/python2.5 2>/dev/null || \
  25.         true
  26.  
  27.  
  28.